﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VehicleScale.Models
{
    [Serializable]
    public class EmployeeModel : ModelBase
    {

        #region Properties
        [NonSerialized]
        private string _employeeID;
        public string EmployeeID
        {
            get { return _employeeID; }
            set
            {
                if (_employeeID != value)
                {
                    _employeeID = value;
                }
            }
        }

        [NonSerialized]
        private string _employeeName;
        public string EmployeeName
        {
            get { return _employeeName; }
            set
            {
                if (_employeeName != value)
                {
                    _employeeName = value;
                }
            }
        }

        [NonSerialized]
        private string _telephone;
        public string Telephone
        {
            get { return _telephone; }
            set {
                if (_telephone != value)
                {
                    _telephone = value;
                }
            }
        }

        [NonSerialized]
        private string _address;
        public string Address
        {
            get { return _address; }
            set
            {
                if (_address != value)
                {
                    _address = value;
                }
            }
        }

        [NonSerialized]
        private string _description;
        public string Description
        {
            get { return _description; }
            set
            {
                if (_description != value)
                {
                    _description = value;
                }
            }
        }

        [NonSerialized]
        private string _identification;
        public string Identification
        {
            get { return _identification; }
            set
            {
                if (_identification != value)
                {
                    _identification = value;
                }
            }
        }

        [NonSerialized]
        private string _createdByID;
        public string CreatedByID
        {
            get { return _createdByID; }
            set
            {
                if (_createdByID != value)
                {
                    _createdByID = value;
                }
            }
        }

        [NonSerialized]
        private System.DateTime _creationDate;
        public System.DateTime CreationDate
        {
            get { return _creationDate; }
            set
            {
                if (_creationDate != value)
                {
                    _creationDate = value;
                }
            }
        }

        [NonSerialized]
        private string _modifiedByID;
        public string ModifiedByID
        {
            get { return _modifiedByID; }
            set { 
                if(_modifiedByID != value)
                {
                    _modifiedByID = value;
                }
            }
        }

        [NonSerialized]
        private System.DateTime _modifiedDate;
        public System.DateTime ModifiedDate
        {
            get { return _modifiedDate; }
            set
            {
                if (_modifiedDate != value)
                {
                    _modifiedDate = value;
                }
            }
        }

        [NonSerialized]
        private bool _active;
        public bool Active
        {
            get { return _active; }
            set
            {
                if (_active != value)
                {
                    _active = value;
                }
            }
        }

        private string _username;
        public string Username
        {
            get { return _username; }
            set
            {
                if (_username != value)
                {
                    _username = value;
                }
            }
        }

        private string _password;
        public string Password
        {
            get { return _password; }
            set {
                if (_password != value)
                {
                    _password = value;
                }
            }
        }

        [NonSerialized]
        private int _groupPermissionID;
        public int GroupPermissionID
        {
            get { return _groupPermissionID; }
            set
            {
                if (_groupPermissionID != value)
                {
                    _groupPermissionID = value;
                }
            }
        }

        [NonSerialized]
        private IList<VehicleScaleModel> _vehicleScales;
        public IList<VehicleScaleModel> VehicleScales
        {
            get { return _vehicleScales; }
            set
            {
                if (_vehicleScales != value)
                {
                    _vehicleScales = value;
                }
            }
        }
        
        #endregion

    }
}
